package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.coach.dto.CoachDto;
import com.fitness.fitness.modal.coach.entity.Coach;
import com.fitness.fitness.modal.coach.vo.CoachVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CoachConvertor {
    Page<CoachVO> entity2Vo(Page<Coach> coachBoPage);

    CoachVO entity2Vo(Coach coach);;

    Coach dto2entity(CoachDto coachDto);

    List<CoachVO> entities2Vos(List<Coach> coaches);
}
